package com.bawei.login.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.BaseResponse
import com.bw.lib_common.entity.UserEntity
import retrofit2.http.POST
import retrofit2.http.Query

interface LoginApiServer: BaseApiServer {
    @POST("/api/user/login")
    suspend fun loginToServer(@Query("password")password:String, @Query("username")username:String):BaseResponse<UserEntity>

    @POST("/api/user/register")
    suspend fun registerToServer(@Query("password")password:String, @Query("username")username:String): BaseResponse<UserEntity>

}